package kr.hkit.powerjava.alone;

import javax.swing.JPanel;
import javax.swing.JButton;
import java.awt.FlowLayout;
import javax.swing.BoxLayout;
import java.awt.Component;

public class PanelInput extends JPanel {
	private LabelAndTxt pdCode;
	private LabelAndTxt pdName;
	private LabelAndTxt pdPrice;
	private LabelAndTxt amount;
	private LabelAndTxt marjin;
	private JButton btnInput;
	private JButton btnOutput_1;
	private JPanel panel_button;
	private JButton btnOutput_2;

	/**
	 * Create the panel.
	 */
	public PanelInput() {

		initialize();
	}
	private void initialize() {
		setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
		
		pdCode = new LabelAndTxt("제품코드");
		add(pdCode);
		
		pdName = new LabelAndTxt("제품명");
		add(pdName);
		
		pdPrice = new LabelAndTxt("제품단가");
		add(pdPrice);
		
		amount = new LabelAndTxt("판매수량");
		add(amount);
		
		marjin = new LabelAndTxt("마 진 율");
		add(marjin);
		
		panel_button = new JPanel();
		add(panel_button);
		
		btnInput = new JButton("입력");
		panel_button.add(btnInput);
		
		btnOutput_1 = new JButton("출력1");
		panel_button.add(btnOutput_1);
		
		btnOutput_2 = new JButton("출력2");
		panel_button.add(btnOutput_2);
	}

}
